package com.dongwu.manager.entity;

import com.dongwu.common.entity.BaseEntity;

import javax.persistence.Entity;

/**
 * <p>微信关注用户信息</p>
 *
 * @author liangrs
 * @version latest
 * @date 2018/1/11
 */
@Entity
public class UserInfo extends BaseEntity<String> {

    private String openid; //用户当前公众号OPENID

    private String nickname; //用户昵称

    private int sex; //用户性别

    private String city; //城市

    private String country; //国家

    private String province; // 省份

    private String language; //用户语言

    private String headimgurl; //用户头像

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                ", openid='" + openid + '\'' +
                ", nickname='" + nickname + '\'' +
                ", sex='" + sex + '\'' +
                ", city='" + city + '\'' +
                ", country='" + country + '\'' +
                ", province='" + province + '\'' +
                ", language='" + language + '\'' +
                ", headimgurl='" + headimgurl + '\'' +
                '}';
    }
}
